#include "stm32f10x.h"
#include "bsp.h"

typedef void (*vfnv_t) (void);

extern vfnv_t __bsp_init_array_start[];
extern vfnv_t __bsp_init_array_end[];

void hardware_init_hook(void)
{
    NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);

    vfnv_t * pfn = __bsp_init_array_start;
    for ( ; pfn != __bsp_init_array_end; pfn++)
        (*pfn)();
}

